package com.admin.system.entity;


import java.util.ArrayList;

/**
 * 组织机构
 */
public class SystemGroup {

    /**
     *
     */
    private Integer id;
    /**
     * 组织名称
     */
    private String groupName;
    /**
     * 上级id
     */
    private Integer pid;
    /**
     * 排序
     */
    private Integer sort;

    private ArrayList<SystemGroup> children;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return this.id;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupName() {
        return this.groupName;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getPid() {
        return this.pid;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return this.sort;
    }

    public ArrayList<SystemGroup> getChildren() {
        return children;
    }

    public void setChildren(ArrayList<SystemGroup> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("SystemGroup[");
        sb.append("id=").append(id);
        sb.append(",groupName=").append(groupName);
        sb.append(",pid=").append(pid);
        sb.append(",sort=").append(sort);
        sb.append("]");
        return sb.toString();
    }

}
